import Vue from 'vue';
import App from './App';
import store from './store'; // store
import plugins from './plugins'; // plugins
import './permission'; // permission
import uView from 'uview-ui';
import { parseTime } from '@/utils/ticket';
//按钮防抖
import { noMultipleClicks } from './utils/common.js';
import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue';
import uniDataSelect from '@dcloudio/uni-ui/lib/uni-data-select/uni-data-select.vue';
import uniEasyInput from '@dcloudio/uni-ui/lib/uni-easyinput/uni-easyinput.vue';
import uniDatetimePicker from '@dcloudio/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue';
import uniDataPicker from '@dcloudio/uni-ui/lib/uni-data-picker/uni-data-picker.vue';
Vue.component('uni-data-select', uniDataSelect);
Vue.component('uni-popup', uniPopup);
Vue.component('uni-easyinput', uniEasyInput);
Vue.component('uni-datetime-picker', uniDatetimePicker);
Vue.component('uni-data-picker', uniDataPicker);
Vue.use(uView);
Vue.use(plugins);
Vue.prototype.parseTime = parseTime;
Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.prototype.$noMultipleClicks = noMultipleClicks;
App.mpType = 'app';

const app = new Vue({
  ...App
});

app.$mount();
